<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateExhibitionTemplateTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('exhibition_template', function (Blueprint $table) {
            $table->id();
            $table->string("invite_slogan")->nullable()->comment("邀请语");
            $table->string("active_name")->nullable()->comment("活动名");
            $table->string("active_time")->nullable()->comment("活动时间");
            $table->string("active_location")->nullable()->comment("活动地点");
            $table->string("active_link")->nullable()->comment("联系方式");
            $table->string("ending_word")->nullable()->comment("结束语");
        });
        DB::statement("ALTER TABLE `exhibition_template` comment'会议邀约语'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('exhibition_template');
    }
}
